package org.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Response {
    private int errno;
    private Object data;

    public static class Data {
        private String url;

        public Data(String url) {
            this.url = url;
        }
    }
    public static Response success(String url) {
        return new Response(1, new Data(url));
    }
}
